# coding=utf-8
from sutras import models


def get_user_latest_transcription(user, sutra_edition_id):
    user_transcription = models.UserTranscription.objects.filter(
        user=user, sutra_edition_id=sutra_edition_id).order_by("-id").first()
    return user_transcription
